package com.bfl.sa.showcase.sample.service;

import com.bfl.sa.common.service.BaseService;
import com.bfl.sa.showcase.sample.entity.Sample;
import com.bfl.sa.showcase.sample.mapper.SampleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class SampleService extends BaseService<Sample, Long> {

    @Resource
    private SampleMapper sampleMapper;

    public Sample findByName(String name) {
        return sampleMapper.findByName(name);
    }

}
